{extend name="public/base" /} {block name="body"}
<div class="ibox float-e-margins">
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>连锁店列表</strong></li>
	</ol>
</div>
	<div class="ibox-content">
		<div class="row">
			<div class="col-sm-12">
				<div class="col-sm-2">
					<div class="input-group">
						{if $count<=0}
						<a href="{:url('add')}" class="btn btn-xs btn-primary">添加</a>
						{/if}
						
					</div>
				</div>
			</div>
		</div>
            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th>id</th>
                                <th>用户名</th>
                                <th>用户手机号</th>
                                <th>地址</th>
                                <th>负责人</th>
                                <th>营业时间</th>
                                <th>状态</th>
								<th>排序</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody id="list">
                        	{volist name="list" id='ad'}
                        	<tr>
                        		<td>{$ad.id}</td>
                        		<td>{$ad.name}</td>
                        		<td>{$ad.mobile}</td>
                        		<td>{$ad.address}</td>    
                        		<td>{$ad.shopowner}</td>
                        		<td>{$ad.business_start} - {$ad.business_end}</td>
                        		<td>
                        			{if $ad.status == 1}
                        		 	显示
                        		 	{else}
                        		 	不显示
                        		 	{/if}
                        		</td>
                        		<td>{$ad.sort}</td>
                        		<td>	
                        			<a href="{:url('edit',['id'=>$ad.id])}" class="btn btn-primary bnt-sm">
										<i class="fa fa-paste"></i> 编辑</a>&nbsp;&nbsp;
									{if $ad.sid == ''}
									<a href="{:url('prtadd',['id'=>$ad.id])}" class="btn btn-primary bnt-sm">
										<i class="fa fa-paste"></i> 打印机设置</a>&nbsp;&nbsp;
									{else}
									<a href="{:url('prtedit',['id'=>$ad.id])}" class="btn btn-primary bnt-sm">
										<i class="fa fa-paste"></i> 打印机编辑</a>&nbsp;&nbsp; 
									{/if}
									{if condition="$vo.id neq 1"}
									<a href="{:url('delete',['id'=>$ad.id])}" class="btn btn-danger bnt-sm ajax-delete">
										<i class="fa fa-trash-o"></i> 删除</a>
									{/if}									
                        		</td>
                        	</tr>
                        	{/volist}
                        </tbody>
                    </table>
                    <div style="text-align: right;">
                      {$list->render()}
                    </div>
                </div>
            </div>
            </div>
</div>
{/block} {block name="script"}
<script>
</script>
{/block}